<script type="text/javascript">
    function getfav()
{	
	var url = '<{$config.weburl}>/ajax_back_end.php';
	var myurl=document.location.href;
		myurl=myurl.replace('&','*');
	var u='<{$smarty.cookies.USER}>';
	if (u=='')
	{
		alert('<{$lang.no_logo}>');
		window.location.href='<{$config.weburl}>/login.php';
		return false;
	}
	var fu='<{$de.nid}>';
 	var typ='1';
	var ttil='<{$de.title|regex_replace:"/[\r\t\n\']/":""}>';
	var mpic='<{$config.weburl}>/uploadfile/news/<{$de.pic}>';
	var des='<{$de.con|strip_tags|regex_replace:"/[\r\t\n\']/":""|truncate:100:"...":true}>';
    var pars = 'user='+u+'&fid='+fu+'&type='+typ+'&title='+ttil+'&url='+myurl+'&des='+des+'&picurl='+mpic;
	var myAjax = new Ajax.Request(url,{method: 'post', parameters: pars, onComplete: showResponse});
	function showResponse(originalRequest)
	{
	    if(originalRequest.responseText>1)
	       alert('<{$lang.fav_ok}>');
		else if (originalRequest.responseText>0)
	       alert('<{$lang.fav_isbing}>');
		else
	       alert('<{$lang.error}>');
	}
}
function printcontent()
{
	var printw = window.open('','','');
	printw.opener = null;
	printw.document.write('<div style="width:700px;">'+$('newscon').innerHTML+'</div>');
	printw.window.print();
}
</script>
<div class="guanggao1">
    <script src='<{$config.weburl}>/api/ad.php?id=62&catid=<{$smarty.get.id}>&sname=<{$sname}>'></script>
</div>
<div class="line2"></div>
<div id="allNews">
    <div id="new-content1-left2"> 
        <div id="new-content1-left-top">
            <span class="news1">你现在所在的位置是:</span>
            <span class="news2"><a href="<{$config.weburl}>/?m=news">新闻资讯</a></span>
            <span class="news2">></span>
            <span class="news2"><a href="<{$config.weburl}>/?m=news&s=news_list&id=<{$de.classid}>"><{$de.cat}></a></span>
            <span class="news2">></span>
            <span class="news2">正文</span>
<!--            <span class="fuhao">>></span>-->
<!--            <span class="font">投稿中心</span>-->
        </div>
        <div id="xinwenxiangxi">
            <div class="newstitle"><{if $de.ftitle}><{$de.ftitle}><{else}><{$de.title}><{/if}></div> 
            <div class="newstime">
                    <{$lang.comer}><{$de.source}>
                    <{$lang.author}><{$de.writer}>
                    <{$lang.pubtime}><{$de.uptime|date_format}>
                    <{$lang.read_count}><{insert name="readCount"}>
                    <{insert name="label" type="statics" temp='statics_default' ctype=1 id=$de.nid}>
                    <a href="javascript:getfav();"><{$lang.fav}></a>
                    <a href="javascript:printcontent();"><{$lang.print}>&nbsp;</a>
            </div>
            <div id="newscon" class="newscon">
                <div style="text-indent:0em;" class="newsad">
                    <script src='<{$config.weburl}>/api/ad.php?id=29&catid=<{$smarty.get.id}>&sname=<{$sname}>'></script>
                </div>
		<{if $noright=='true'}>
			<h1 style="font-size:16px"><{$lang.noright}></h1>
		<{else}>
			<{$ncontent}>
		<{/if}>   
            </div>
            <div class="newstitle"><{$pages}></div> 
        </div>
    </div>


    <div id="new-content1-Middle1"></div>
    <div id="new-content1-right">
        <script src='<{$config.weburl}>/api/ad.php?id=63&catid=<{$smarty.get.id}>&sname=<{$sname}>'></script>
    </div>
    
    <div class="newguanggaowei"><script src='<{$config.weburl}>/api/ad.php?id=64&catid=<{$smarty.get.id}>&sname=<{$sname}>'></script></div>   
</div>